<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>遍历数组</title>
	</head>
	<body>
		<script>
		var n=["java程序设计","javascript前端开发","mysql数据库","androi基础","android高级","企业项目实战"];
		for(i=0;i<n.length;i++){
			document.write('<li><a>'+n[i]+'</a></li>')
		}
		document.write("<br />")
		for(var j in n){
			  document.writeln(n[j]);
			  document.write("<br />")
		}
		document.write("<br />")
		for (var value of n){
			document.writeln(value);
			document.write("<br />")
		}
		</script>
	</body>
</html>
